body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 400px;
  min-height: 400px;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  padding: 15px;
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.tab-button {
  padding: 8px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s;
}

.tab-button:hover {
  background-color: #eee;
}

.tab-button.active {
  color: #4285f4;
  border-bottom: 2px solid #4285f4;
  font-weight: bold;
}

.tab-content {
  display: none;
  padding: 10px 0;
}

.tab-content.active {
  display: block;
}

h2 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

/* 技术检测部分样式 */
.tech-container {
  margin-top: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tech-item:hover {
  background-color: #f0f7ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.tech-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  object-fit: contain;
}

/* 图标替代方案 */
.icon-fallback {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-color: #4285f4;
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.tech-name {
  font-weight: bold;
  margin-right: 10px;
  flex: 1;
}

.tech-version {
  color: #888;
  font-size: 12px;
  margin-right: 8px;
}

.tech-details-button {
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s;
  cursor: pointer;
}

.tech-item:hover .tech-details-button {
  opacity: 1;
}

/* 自动更新效果 */
.auto-update-badge {
  background-color: #4caf50;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.updated .tech-item {
  animation: highlight 1s ease;
}

@keyframes highlight {
  0% { background-color: #e3f2fd; }
  100% { background-color: #fff; }
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4285f4;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
  display: none;
}

.loader.active {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 聊天部分样式 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 300px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-input-container {
  display: flex;
}

#chat-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  outline: none;
}

#send-button {
  padding: 8px 15px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

#send-button:hover {
  background-color: #3367d6;
}

.chat-options {
  margin-top: 10px;
  font-size: 13px;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message {
  background-color: #e3f2fd;
  align-self: flex-end;
  margin-left: auto;
}

.ai-message {
  background-color: #f1f1f1;
  align-self: flex-start;
}

/* 加载动画 */
.loading-dots {
  display: inline-block;
}

.loading-dots:after {
  content: '...';
  animation: loading 1.5s infinite;
  display: inline-block;
  width: 12px;
  text-align: left;
}

@keyframes loading {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* 设置部分样式 */
.setting-item {
  margin-bottom: 15px;
}

.setting-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.setting-item input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#save-settings {
  padding: 8px 15px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#save-settings:hover {
  background-color: #3367d6;
}

/* 错误和提示信息 */
.error, .no-tech {
  padding: 15px;
  text-align: center;
  background-color: #f8f8f8;
  border-radius: 4px;
  color: #666;
} 